package com.ruoyi.web.controller.order.mapper;

import com.ruoyi.common.core.dao.BaseMapper;
import com.ruoyi.common.entity.DO.order.ShopCreditOrderDO;
import com.ruoyi.common.entity.VO.order.ShopCreditOrderVO;
import com.ruoyi.common.entity.VO.order.ShopOrderSearchVO;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IBackCreditOrderMapper extends BaseMapper<ShopCreditOrderDO> {

    List<ShopCreditOrderVO> searchList(ShopOrderSearchVO searchVO);

    @Update("UPDATE shop_credit_order set order_status=1 ,complete_time=sysdate() WHERE exchange_code=#{exchangeCode}")
    int exchange(String exchangeCode);

}
